package org.orbis.memorycontroller.struct;

public class MemoryInfoMaterial{
	private int blockID;
	private int usedSize;
	private int capacitySize;
	private int clusterID;
	private String className;

	public MemoryInfoMaterial(int blockID, int usedSize, int capacitySize, int clusterID, String className){
		this.blockID = blockID;
		this.usedSize = usedSize;
		this.capacitySize = capacitySize;
		this.clusterID = clusterID;
		this.className = className;
	}
	
	public int blockID() {
		return this.blockID;
	}

	public int usedSize(){
		return this.usedSize;
	}

	public int capacity(){
		return this.capacitySize;
	}

	public double usedPercent(){
		return 100.0 * this.usedSize / this.capacitySize;
	}

	public int clusterID(){
		return clusterID;
	}

	public String className(){
		return className;
	}
}
